From: | Dariusz Gac |
Date: | 29 Sep 2001 at 12:54:02 |
Subject: | [D5] Magellan & YAM: SendTo function |
Hello,
Below You can find a script for file sending from button/menu directly
to given e-mail address.
Paths and e-mail address have to be changed where neccessary, off
course...
Function : ARexx Internet:Yam/rexx/CheckYAMport.rexx
AmigaDOS SetEnv temat {ou}
AmigaDOS SetEnv plik {f}
AmigaDOS Rx "address YAM 'SHOW' "
AmigaDOS Rx "address YAM 'MAILWRITE' "
AmigaDOS Rx "address YAM 'WRITETO receiver@address.here' "
AmigaDOS Rx "address YAM 'WRITESUBJECT $temat' "
AmigaDOS Rx "address YAM 'WRITEATTACH $plik' "
AmigaDOS Rx "address YAM 'WRITESEND' "
AmigaDOS Rx "address YAM 'HIDE' "
AmigaDOS UnSetEnv plik
AmigaDOS UnSetEnv temat
Flags : CD source
Do all files
Additionally:
Command FinishSection
Command DoubleClick confirmation_message
And CheckYamPort.arexx script below:
/* CheckYAMPort */
OPTIONS RESULTS
IF ~SHOW('P', 'YAM') THEN DO
ADDRESS COMMAND
'Run <>NIL: Yam:Yam NOCHECK'
'WaitForPort YAM'
END
All remarks are welcomed :)
Copyright (c) by Darek A.D 2001